package com.mallcai.bigdata.ladon.dpl.entity.system;

import com.mallcai.bigdata.ladon.dpl.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author gst
 * @date 2019-12-30 20:36
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RoleRlResource extends BaseEntity {
    private Long    roleId;
    private Long    resId;
    /**
     * 权限掩码 1 - 查看; 2 - 新增; 4 - 修改; 8 - 删除
     */
    private Integer mask;

    /**
     * 资源路径
     */
    private String path;

    public RoleRlResource(Long roleId, Long resId, Integer mask) {
        this.roleId = roleId;
        this.resId = resId;
        this.mask = mask;
    }
}
